//
//  MZweizhi2ViewController.m
//  民族文化宫
//
//  Created by 何锦坤 on 14-8-14.
//  Copyright (c) 2014年 WANG CUNRUI. All rights reserved.
//

#import "MZweizhi2ViewController.h"
#import "MZweizhiView.h"

@implementation MZweizhi2ViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    NSLog(@"%@",_num);
    if ([_num isEqualToString:@"少数民族非物质文化遗产展示周"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_01.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];

    }
    else if ([_num isEqualToString:@"宫藏文物精华展"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_02.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];
        
    }
    else if ([_num isEqualToString:@"2014年古代精品面具展"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_03.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];
        
    }
    else if ([_num isEqualToString:@"党的群众路线档案展览"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_04.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];
        
    }
    else if ([_num isEqualToString:@"少数民族地区民族服饰展"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_05.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];
        
    }
    else if ([_num isEqualToString:@"国家古代“钱币”巡展"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_06.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];
        
    }
    else if ([_num isEqualToString:@"2014年《中华玉器展》"]) {
        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_07.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
        
        [self.view addSubview:indoorView];
        
    }
//    else{
//        MZweizhiView *indoorView = [[MZweizhiView alloc]initWithIndoorMapImageName:@"imm_01.jpg" Frame:CGRectMake(0, 64, 320, self.view.frame.size.height-64-44) ];
//        
//        [self.view addSubview:indoorView];
//    }
    
    //[self chooseFloor];
    
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
